package com.yl.zqy.common;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description 内存缓存-系统变量
 * @Author liang.yu
 * @Date 2024/3/24 15:35
 */
@Component
public class MemoryCache {
    private static MemoryCache instance;

    private Map<String,Map<String,String>> memoryCacheMap = new HashMap();

    public static MemoryCache getInstance() {
        if (instance == null) {
            instance = new MemoryCache();
        }
        return instance;
    }

    public Map getMemoryCacheMap() {
        return instance.memoryCacheMap;
    }



}
